Skip to content

fix/hereNow response parsing when channel Occupancy count property omitted from the response.#273

Merged
mohitpubnub merged 4 commits into
masterfrom
CLEN-3491
Jun 1, 2026
Merged

fix/hereNow response parsing when channel Occupancy count property omitted from the response.#273
mohitpubnub merged 4 commits into
masterfrom
CLEN-3491

Conversation

@mohitpubnub

@mohitpubnub mohitpubnub commented May 29, 2026

Copy link
Copy Markdown
Contributor

fix: hereNow will return correct Occupancy count with single channel and uuid excluded case when channel Occupancy property value is omitted from the response for given single channel.

Fixes issue of hereNow returning incorrect Occupancy when Occupancy count value is omitted from the response of single channel hereNow call.

fix: HereNow omitting the channel entry for an empty channel when UUIDs are included; the channel is now always returned with occupancy 0 and an empty occupants list.

fix for HereNow omitting the channel entry for an empty channel when UUIDs are included

Mohit Tejani added 2 commits May 29, 2026 13:38
…equested without uuid details to assign channel occupancy to totalOccupancy returned by server,

add empty channel data structure when there are no occupancy data in the response
@pubnub-ops-terraform

pubnub-ops-terraform commented May 29, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mohitpubnub mohitpubnub changed the title Clen 3491 fix/hereNow response parsing when channel Occupancy count property omitted from the response. May 29, 2026
@mohitpubnub mohitpubnub self-assigned this May 29, 2026
…response parsing in various cases of HereNow responses
}

hereNowResult.Channels = new Dictionary<string, PNHereNowChannelData>();
// This block handles the "compact" here_now response shape that the server returns

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is where different response shapes are being handled for hereNow

@jakub-grzesiowski jakub-grzesiowski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mohitpubnub

Copy link
Copy Markdown
Contributor Author

@pubnub-release-bot release as v8.2.1

@mohitpubnub mohitpubnub merged commit 73f6037 into master Jun 1, 2026
11 of 17 checks passed
@mohitpubnub mohitpubnub deleted the CLEN-3491 branch June 1, 2026 05:14
@pubnub-release-bot

Copy link
Copy Markdown
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants